﻿using System;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Com.OpenCode.Framework.DevForm
{
    public partial class OpenCodeUserControl : XtraUserControl
    {
        public OpenCodeUserControl()
        {
            InitializeComponent();
            Dock = DockStyle.Fill;
        }

        protected override void OnFirstLoad()
        {
            OpenCodeSplashScreenManager.Show();
            try
            {
                OnStartLoad();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            finally
            {
                OpenCodeSplashScreenManager.Close();
            }
        }

        protected virtual void OnStartLoad()
        {
        }
    }
}